﻿<UserControl x:Class="DomusDotNet.Sbm.Client.SL4.Views.BookView"
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
			 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
			 xmlns:inf="clr-namespace:DomusDotNet.Sbm.Client.SL4.Infrastructure"
			 mc:Ignorable="d"
			 d:DesignHeight="300"
			 d:DesignWidth="400">

	<Border Style="{StaticResource GreenPanel}"
			VerticalAlignment="Top"
			MaxWidth="500">
		<StackPanel>
			<TextBlock Name="Book_Title"
					   Margin="5"
					   FontSize="25" />

			<TextBlock Text="{Binding Path=Book.Authors, Converter={StaticResource toStringJoin}}"
					   Margin="5"
					   FontSize="15" />


			<StackPanel Margin="5"
						Orientation="Horizontal">
				<TextBlock Text="Editore: " />
				<TextBlock  Name="Book_Editor" />
			</StackPanel >

			<StackPanel Margin="5"
						Orientation="Horizontal">
				<TextBlock Text="Data Pubblicazione: " />
				<TextBlock  Name="Book_PublishDate" />
			</StackPanel >

			<StackPanel Margin="5"
						Orientation="Horizontal">
				<TextBlock Text="Status: " />
				<TextBlock  Name="Book_BookStatus" />
			</StackPanel >

			<inf:VisibilityPanel x:Name="SupportsBack">
				<StackPanel Orientation="Horizontal"
							Margin="5">
					<Button Name="Back"
							Content="Indietro" />
				</StackPanel>
			</inf:VisibilityPanel>
		</StackPanel>
	</Border>
</UserControl>
